package com.hqyj.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Employee  extends MyOrder implements Serializable {
    private Long id;

    private String number;

    private String name;

    private String job;

    private String leaderNo;

    private Date hireDate;

    private BigDecimal salary;

    private BigDecimal bonus;

    private Integer level;

    private String departmentNo;

    public Long getId() {
        return id;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    /*一对一查询*/
    private Department department;

    public void setId(Long id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getLeaderNo() {
        return leaderNo;
    }

    public void setLeaderNo(String leaderNo) {
        this.leaderNo = leaderNo;
    }

    public Date getHireDate() {
        return hireDate;
    }

    public void setHireDate(Date hireDate) {
        this.hireDate = hireDate;
    }

    public BigDecimal getSalary() {
        return salary;
    }

    public void setSalary(BigDecimal salary) {
        this.salary = salary;
    }

    public BigDecimal getBonus() {
        return bonus;
    }

    public void setBonus(BigDecimal bonus) {
        this.bonus = bonus;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getDepartmentNo() {
        return departmentNo;
    }

    public void setDepartmentNo(String departmentNo) {
        this.departmentNo = departmentNo;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", number='" + number + '\'' +
                ", name='" + name + '\'' +
                ", job='" + job + '\'' +
                ", leaderNo='" + leaderNo + '\'' +
                ", hireDate=" + hireDate +
                ", salary=" + salary +
                ", bonus=" + bonus +
                ", level=" + level +
                ", departmentNo='" + departmentNo + '\'' +
                ", department=" + department +
                '}';
    }
}